cmake_minimum_required(VERSION 3.0)
PROJECT(UPLOAD_FDFS)

include_directories(../common/ /usr/include/fastdfs/)

# 添加 src 目录中的所有源文件到 SOURCES 变量中
aux_source_directory(../common ALL_SRCS)

# 移除不想要的源文件
list(REMOVE_ITEM ALL_SRCS "../common/sqlconnpool.cpp" "../common/sqlconnpool_C.cpp")

add_compile_options(-Wall)
add_executable(upload ${ALL_SRCS} main.c)

target_link_libraries(upload fdfsclient fcgi mysqlclient pthread hiredis)
